function foo(first, second, third, ...arg) {
  console.log(first, arg);
}
foo(1, 2, 3, 4);
